  <style>
    /* Global Reset */
    * { box-sizing: border-box; margin: 0; padding: 0; }
/* Kill only the browser scrollbars on html/body */
html,
body {
  overflow: auto;
}
    /* Body Background using Alma background with a lightening overlay */
    body {
      font-family: 'Quicksand', sans-serif;
      position: relative;
      background: transparent;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      overflow: hidden;
      z-index: 1;
    }
    /* Lighten the dark background image by overlaying a light teal at 70% opacity */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(rgba(191,232,240,0.7), rgba(191,232,240,0.7)),
                  url('https://assets.isu.pub/document-structure/240617131603-158085e74299e5a9765292d1825170d1/v1/e4cf08d88eea167937b1a3edf13bae65.jpeg') no-repeat center center fixed;
      background-size: cover;
      z-index: -1;
    }
    
/* Screen Containers as 75Ã—90 teal frames */
.screen {
  display: none;          /* hide every screen by default */
  width: 75vw;
  margin: 5vh auto;
  background-color: rgba(191,232,240,0.5);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  padding-bottom: 60px;
}
header, .screen, .logo-container {
  pointer-events: auto;
}
.screen::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.screen.active {
  display: flex;         /* only the active one appears */
  animation: fadeIn 0.5s ease-in;
}
    
    /* Teal Overlay â€“ now at 50% opacity */
    .teal-overlay {
      background-color: transparent; 
      padding: 20px;
      border-radius: 10px;
    }
    
    /* Header */
header {
display: flex;
  justify-content: center;
  align-items: center;
    padding: 1rem;
  max-width: 100%;
  overflow: hidden;
  position: relative;
 z-index: 10; /* Make sure header elements layer above overlays */
}
    
        
    /* Logo Container & Logo Adjustments */


    
    /* Buttons â€“ Larger Start Button */
    .touch-button {
      background-color: #800000;
      color: #fffdd0;
      border: none;
      padding: 15px 30px;
      font-size: 1.3em;
      border-radius: 8px;
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      transition: background-color 0.3s ease, transform 0.3s ease;
      margin: 10px;
      animation: buttonBounce 2s infinite;
    }
    .touch-button:hover { background-color: #a00000; }
    @keyframes buttonBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }
    /* Top nav buttons (Back / Home) */
.nav-button {
  background-color: #800000;
  color: #fffdd0;
  border: none;
  padding: 8px 16px;
  font-size: 1em;
  font-family: 'Montserrat', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 12px;
}

.nav-button:hover {
  background-color: #a00000;
}

   /* Headings */
h1 {
  font-family: 'Angelina', cursive;
}
h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #800000;
}

    
    /* Paragraphs */
    p { margin-bottom: 20px; font-size: 1.1em; color: #800000; }
    /* First paragraph on the home screen should be black */
    #homeScreen main p:first-of-type {
      color: black;
    }
    
    /* Ensure <small> and <em> are 1em */
    small, em { font-size: 1em; }
    
    /* Start Page Extras */
    #startProgress, #highScoreDisplay {
      margin: 10px 0;
      font-size: 1.1em;
      color: #800000;
    }
    
    /* Journey Selection Screen */
    .list-container {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
      padding: 10px;
    }
    .list-item {
      background-color: #800000;
      color: #fffdd0;
      padding: 20px;
      border-radius: 8px;
      font-size: 1.2em;
      cursor: pointer;
      transition: transform 0.2s ease;
      flex: 1 1 200px;
      position: relative;
    }
    .list-item:hover { transform: scale(1.05); }
    .list-item.completed {
      background-color: #cccccc;
      color: #666666;
    }
    .list-item.completed img.badge {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 30px;
    }
    
    /* Journey Detail Screen */
    #journeyDetail { text-align: left; width: 100%; }
    .milestone {
      background-color: #800000;
      color: #fffdd0;
      padding: 15px;
      border-radius: 6px;
      margin: 10px 0;
      cursor: pointer;
      transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    }
    .milestone:hover { transform: scale(1.03); }
    .milestone.clicked { animation: bounce 0.3s ease-out; }
    @keyframes bounce {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }
    /* When unlocked: cream background with maroon text */
    .milestone.active {
      background-color: #fffdd0;
      color: #800000;
    }
    .milestone em { font-size: 1em; }
    
.congrats-message {
  margin-top: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #800000;
  text-align: center;
}

    .related-services {
      margin-top: 20px;
      padding: 15px;
      background-color: #fffdd0;
      border-radius: 6px;
      font-size: 1.1em;
      color: #800000;
    }
    
    /* Badge Award Popup */
    #badgeOverlay .badge {
      padding: 30px 40px;
      font-size: 1.5em;
    }
    .badge-image {
      width: 80px;
      display: block;
      margin: 0 auto;
      filter: brightness(0) saturate(100%);
    }
    
    /* Badge Summary on Summary Page */
    .badge-summary-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-bottom: 20px;
    }
    .badge-summary-item {
      flex: 1 0 14%;
      text-align: center;
    }
    .badge-summary-item img {
      width: 50px;
      filter: brightness(0) saturate(100%);
      display: block;
      margin: 0 auto;
    }
    
    /* Final Summary Screen */
    #summaryScreen h2 { color: #800000; font-weight: bold; }
    #summaryScreen ul { text-align: left; margin-left: 20px; }
    #summaryScreen hr { width: 100%; border: 1px solid #ccc; margin: 20px 0; }
    
    /* Footer â€“ cream background at 60% opacity */
    footer {
      background-color: rgba(255,253,208,0.6);
      color: #800000;
      width: 100%;
      padding: 5px 10px;
      margin-top: 40px;
      font-size: 0.8em;
    }
    .footer-top {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-bottom: 5px;
    }
    .footer-item a { text-decoration: none; color: #800000; }
    .divider { margin: 0 5px; color: #800000; }
    .footer-bottom { text-align: center; }
    .footer-bottom p { margin: 3px 0; color: #800000; font-style: italic; }
    .footer-bottom p.footer-message-bold { font-weight: bold; }
    
    /* Overlays */
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(34,34,35,0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .overlay .countdown, .overlay .badge {
      background: #fff;
      padding: 20px 30px;
      border-radius: 8px;
      font-size: 1.5em;
      color: #800000;
      text-align: center;
    }
    .hidden { display: none; }
    
    /* Fade In Animation */
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    
    /* Responsive adjustments */
    @media (max-width: 500px) {
      .header-logo { max-width: 100px; }
            .touch-button { padding: 12px 20px; font-size: 1em; }
    }

/* Badge strip at top of summary */
.badges-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Individual badge icons in the strip */
.summary-badge-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.intro-logo {
  text-align: center;
  margin: 1rem auto 2rem;
}

.intro-logo img.header-logo {
  max-width: 200px;
  height: auto;
  margin: 0.5rem auto;
  display: block;
}
/* â€”â€” summary page tweaks â€”â€” */

.summary-badges {
  text-align: center;
  margin: 2rem 0 1rem;
}
.badge-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1rem;
}
.badge-item {
  flex: 1 0 100px;
  max-width: 120px;
  text-align: center;
}
.badge-item img {
  max-width: 80px;
  display: block;
  margin: 0 auto 0.5rem;
}
.summary-insights {
  margin: 2rem auto;
  max-width: 600px;
  padding: 0 1rem;
}
.summary-insights ul {
  list-style-type: disc;
  list-style-position: inside;
  line-height: 1.6;
}
.summary-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin: 2.5rem auto;
  max-width: 700px;
  text-align: center;
}
.summary-actions .touch-button {
  width: 200px;
  font-size: 1.1rem;
  padding: 12px 16px;
}

/* Center the header logo regardless of a back-button */
.screen > header {
  position: relative;  
  display: flex;       
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}


/* ======================================================
   Summary Page Styles
   ====================================================== */



/* 2) Badge Grid */
.summary-badges {
  text-align: center;
  margin: 2rem 0 1rem;
}
.badge-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1rem;
}
.badge-item {
  flex: 1 0 100px;
  max-width: 120px;
  text-align: center;
}
.badge-item img {
  max-width: 80px;
  display: block;
  margin: 0 auto 0.5rem;
}

/* 3) Insights List */
.summary-insights {
  margin: 2rem auto;
  max-width: 600px;
  padding: 0 1rem;
}
.summary-insights ul {
  list-style: disc inside;
  line-height: 1.6;
}

/* 4) Actions */


.summary-actions .touch-button {
  width: 200px;
  padding: 12px 20px;
  font-size: 1.1rem;
}

/* Wrap each journey in a soft card-style box */
.summary-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem auto;
  text-align: center;
}

#journeySummaryContainer {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}
#journeySummaryContainer h3 {
  font-size: 1.5rem;
  color: #800000;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
}
#journeySummaryContainer li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #222223;
}
#journeySummaryContainer li em {
  font-style: italic;
  display: block;
  margin-top: 0.25rem;
  color: #4b4b4b;
}
#journeySummaryContainer hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5rem 0;
  width: 100%;
}

.badge-item img {
  filter: brightness(0) saturate(100%) drop-shadow(1px 1px 2px rgba(0,0,0,0.15));
}

.summary-badges h3,
.insights-header {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  color: #800000;
  margin-top: 2rem;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1rem auto;
  max-width: 900px;
}

.badge-item {
  flex: 0 1 100px;
  text-align: center;
}
.badge-item img {
  width: 64px;
  height: auto;
  margin-bottom: 0.25rem;
  filter: brightness(0) saturate(100%);
}

@media (max-width: 700px) {
  #journeySummaryContainer section {
    max-width: 95vw;
    padding: 1rem;
  }
}
/* Final corrected summary-intro styles */
.summary-intro {
  text-align: center;
  margin: 2rem auto 1.5rem;
  max-width: 800px;
}


.summary-intro h2 {
  margin-bottom: 0.5rem;
  font-family: 'Angelina', cursive;
  font-weight: normal;
  font-size: 2.5rem;
}

.summary-intro p {
  line-height: 1.4;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}



#almaPopup .popup-box {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  text-align: center;
  color: #800000;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

#almaPopup .popup-box h3 {
  margin-bottom: 1rem;
  font-family: 'Angelina', cursive;
  font-size: 1.8rem;
  color: #800000;
  font-weight: normal;
}

#almaPopup .popup-box p {
  margin: 1rem 0;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 400;
  color: #800000;
}

#almaPopup .popup-box p strong {
  font-weight: 600;
}

#almaPopup .popup-box p em {
  color: #777;
  font-size: 0.9rem;
  font-style: italic;
}

#almaPopup .touch-button {
  background-color: #800000;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(34,34,35,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.overlay .badge {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 1.5em;
  color: #800000;
  text-align: center;
}
.hidden {
  display: none;
}
.footer-top .footer-item {
  display: block;
  margin-bottom: 0.3rem;
}

@media (min-width: 600px) {
  .footer-top .footer-item {
    display: inline-block;
    margin: 0 0.5rem;
  }
}
/* 1. Header Logo Visibility and Containment */



/* 2. Center Summary Insight Boxes */
#journeySummaryContainer section,
.summary-actions {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  text-align: center;
}
/* 3. Clean Up Footer Layout */
footer {
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  background-color: #f7f7e3; /* soft yellow background */
}

.footer-top,
.footer-bottom {
  text-align: center;
  line-height: 1.4;
}

.footer-top .footer-item {
  display: block;
  margin-bottom: 0.3rem;
}

@media (min-width: 600px) {
  .footer-top .footer-item {
    display: inline-block;
    margin: 0 0.5rem;
  }
}


@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }
}
  /* 5. Typography Refinement */
body {
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #990000;
  margin-bottom: 0.5rem;
}

small,
em {
  font-size: 0.9em;
  color: #444;
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .summary-content > section {
    padding: 1rem;
  }

  .touch-button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}
.header-logo {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  height: auto;
}
#summaryScreen header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* === Summary Action Area Fix === */
.summary-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
  padding: 0 1rem;
}

.summary-email-entry {
  text-align: center;
  width: 100%;
}
.summary-email-input {
  padding: 16px 20px;
  font-size: 1.2rem;
  width: 90%;
  max-width: 700px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto 1.5rem;
}
.summary-email-entry label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #800000;
  display: block;
  margin-bottom: 1rem;
}

.summary-email-entry input[type="email"] {
  padding: 16px 20px;
  font-size: 1.2rem;
  width: 90%;
  max-width: 700px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto 1.5rem;
}
.email-disclaimers {
  margin-top: 1rem;
  font-size: 0.9em;
  color: #444;
  text-align: left;
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.5;
}
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}


</style>